const {
	Controller
} = require('uni-cloud-router')
const {
	success,
	exception,
	error,
	typeOf,
} = require("lg-utils");
module.exports = class TimingController extends Controller {
	async updateDayLine() {
		try {
			const {
				data,
				service
			} = this.ctx;
			return await service.timing.updateDayLine();
		} catch (e) {
			return exception(e);
		}
	}

	async ping() {
		return this.service.timing.ping()
	}
	
	async removeLogTimingListAll(){
		try{
			const { 
				service,
				data
			} = this.ctx; 
			return await service.timing.removeLogTimingListAll()
		}catch(e){
			return exception(e);
		}
	}
}
